import request from '@/utils/request'

export function login(userNum, userPwd) {
  return request({
    url: '/login/land',
    method: 'post',
    data: {
      userNum,
      userPwd
    }
  })
}

export function getInfo(token) {
  return request({
    url: '/eduservice/user/info',
    method: 'get',
    params: {token}
  })
}

export function logout() {
  return request({
    url: '/login/logout',
    method: 'get'
  })
}

export function authValidate(data){
  return request({
    url: `/validateToken`,
    method: 'post',
    params:{
      paraStr: data
    }
  })
}


